from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from time import sleep
from postion import options
from postion import service

driver = webdriver.Chrome(options=options,service=service)
driver.get(r'https://www.baidu.com/')
sleep(3)

cookie={'name':'test01','value':'123'}
driver.add_cookie(cookie)

for cookie in driver.get_cookies():
    print(f'{cookie["name"]}---------{cookie["value"]}')

sleep(5)
driver.quit()